package com.googlecode.tracey.messageserver;

import com.googlecode.utterlyidle.modules.Module;
import com.googlecode.utterlyidle.modules.RequestScopedModule;
import com.googlecode.yadic.Container;

public class ConfigurationModule implements RequestScopedModule {
    private final LogDirectory logDirectory;

    public ConfigurationModule(LogDirectory logDirectory) {
        this.logDirectory = logDirectory;
    }

    public Module addPerRequestObjects(Container container) throws Exception {
        container.addInstance(LogDirectory.class, logDirectory);
        return this;
    }
}
